package cn.tedu.wenzhang1.pojo.dto;


import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

@Data
public class ArticleDTO {
    @NotBlank(message = "标题不能为null")
    @ApiModelProperty(value = "标题",required = true)
    private String title;
    @NotBlank(message = "内容不能为null")
    @ApiModelProperty(value = "内容",required = true)
    private String content;
}
